"""
Copyright (c) 2023 - present SKbioinfo
"""

'''
这个模块包含一些通用的数据库连接方式。
'''

from apps.API.connector.connect import MysqlConnection

'''
    MYSQL: Add infos
'''
@MysqlConnection.sudden_connect(operation="Add")
def add_info(add_sql):
    return add_sql

'''
    MYSQL: update infos
'''
@MysqlConnection.sudden_connect(operation="Put")
def update_info(update_sql):
    return update_sql

'''
    MYSQL: delete infos
'''
@MysqlConnection.sudden_connect(operation="Delete")
def delete_info(delete_sql):
    return delete_sql

'''
    MYSQL: query infos
'''
@MysqlConnection.sudden_connect(operation="Query")
def query_info(query_sql):
    return query_sql

'''
    MYSQL(return dictionary): query infos
'''
@MysqlConnection.sudden_connect(operation="dic_Query")
def dic_query_info(query_sql):
    return query_sql